.index-page {
  padding: 30px 20px;
  box-sizing: border-box;
  background-color: var(--bg-color);
  min-height: 100vh;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;

  .title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }

  .subtitle {
    font-size: 24px;
    color: var(--text-secondary-color);
  }
}

// 主题切换按钮
.theme-switcher {
  position: absolute;
  top: 20px;
  left: 20px;
  min-width: 70px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg-color);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  z-index: 100;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  padding: 0 4px;

  &:active {
    transform: scale(0.95);
  }

  .switcher-text {
    font-size: 16px;
    color: var(--primary-color);
    padding: 0 8px;
    font-weight: 500;
    display: flex;
    align-items: center;

    .switcher-arrow {
      font-size: 16px;
      margin-left: 2px;
      transform: rotate(90deg);
    }
  }
}

.tools-container {
  margin-top: 20px;
}

.tools-category {
  margin: 40rpx 0 60rpx; // 增加分类之间的间距

  // 推荐工具样式单独处理
  &.recommended-category {
    .tools-grid {
      margin-top: 15px;
    }

    .tool-card {
      padding: 20px 15px; // 更小的内边距

      .icon-box {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;

        .taroify-icon {
          font-size: 34px;
        }
      }

      .tool-name {
        font-size: 24px;
        margin-bottom: 6px;
      }

      .tool-desc {
        font-size: 20px;
        margin-bottom: 12px;
      }

      .tool-button {
        height: 38px;
        font-size: 20px;
      }
    }
  }
}

.tools-section {
  margin-top: 25px;

  .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
    padding-left: 5px;
    position: relative;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
  }
}

// 单独设置section-title全局样式，确保所有地方都能跟随主题
.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: block;
  padding-left: 5px;
  position: relative;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(var(--accent-color), 0.1);

  &:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  }

  .icon-box {
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-bg);
    border-radius: 50%;
    margin-bottom: 18px;
    box-shadow: 0 3px 8px rgba(var(--primary-color), 0.1);

    .taroify-icon {
      font-size: 42px;
      color: var(--primary-color);
    }
  }

  .tool-name {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary-color);
    margin-bottom: 12px;
    text-align: center;
  }

  .tool-desc {
    font-size: 24px;
    color: var(--text-secondary-color);
    text-align: center;
    line-height: 32px;
    margin-bottom: 20px;
    height: 64px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .tool-button {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    border-radius: 24px;
    font-size: 24px;
    font-weight: 500;
    background: var(--button-bg);
    color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(var(--primary-color), 0.2);

    &:active {
      opacity: 0.9;
    }
  }
}

// 天气样式
.weather-section {
  margin: 15px 0 30px;
  background: var(--weather-bg);
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-primary-color);
}

.weather-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;

  .taroify-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-right: 10px;
  }

  .location-name {
    font-size: 30px;
    color: var(--text-primary-color);
    font-weight: 600;
  }
}

.current-weather {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;

  .temp-info {
    display: flex;
    align-items: flex-start;

    .current-temp {
      font-size: 65px;
      font-weight: bold;
      color: var(--text-primary-color);
      line-height: 1;
    }

    .temp-unit {
      font-size: 32px;
      color: var(--text-primary-color);
      margin-top: 8px;
      opacity: 0.9;
    }
  }

  .weather-desc {
    font-size: 30px;
    color: var(--text-primary-color);
    opacity: 0.95;
  }
}

.forecast-container {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(var(--primary-color), 0.2);
  padding-top: 22px;

  .forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;

    .forecast-day {
      font-size: 26px;
      color: var(--text-primary-color);
      font-weight: 600;
      margin-bottom: 10px;
    }

    .forecast-temp {
      font-size: 24px;
      color: var(--text-primary-color);
      margin-bottom: 10px;
    }

    .forecast-text {
      font-size: 22px;
      color: var(--text-primary-color);
      margin-bottom: 10px;
      font-weight: 500;
    }

    .forecast-wind {
      font-size: 20px;
      color: var(--text-secondary-color);
    }
  }
}

// 添加分割线样式
.taroify-divider {
  margin: 20px 0;
  color: var(--text-secondary-color);
}

// 天气加载样式
.weather-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--weather-bg);
  border-radius: 15px;

  .weather-loading-text {
    color: var(--text-primary-color);
    font-size: 26px;
  }
}

/* 反馈悬浮按钮 */
.feedback-float-btn {
  position: fixed;
  bottom: 50%;
  right: 20px;
  width: 100px;
  height: 100px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 3px 10px rgba(var(--primary-color), 0.3);
  z-index: 100;

  .feedback-text {
    font-size: 20px;
    margin-top: 2px;
  }
}

// 反馈弹窗样式
.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;

  .feedback-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .feedback-content {
    width: 80%;
    background-color: var(--card-bg-color);
    border-radius: 16px;
    padding: 30px 20px;
    z-index: 1001;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

    .feedback-header {
      margin-bottom: 20px;
      text-align: center;

      .feedback-title {
        font-size: 30px;
        font-weight: 600;
        color: var(--text-primary-color);
      }
    }

    .feedback-body {
      margin-bottom: 30px;
      position: relative;

      .feedback-textarea {
        width: 100%;
        height: 200px;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 15px;
        font-size: 24px;
        box-sizing: border-box;
      }

      .feedback-limit {
        position: absolute;
        bottom: -25px;
        right: 10px;
        font-size: 22px;
        color: var(--text-secondary-color);
      }
    }

    .feedback-footer {
      display: flex;
      justify-content: space-between;

      .feedback-cancel, .feedback-submit {
        flex: 1;
        margin: 0 10px;
        height: 60px;
        line-height: 60px;
        border-radius: 30px;
        font-size: 26px;
      }

      .feedback-cancel {
        background-color: var(--accent-color);
        color: var(--text-primary-color);
        border: 1px solid var(--border-color);
      }

      .feedback-submit {
        background: var(--button-bg);
        color: #fff;
        border: none;
        box-shadow: 0 2px 5px rgba(var(--primary-color), 0.2);
      }
    }
  }
}

// 新用户引导提示样式
.theme-guide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: flex-start;

  .guide-content {
    position: relative;
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 80px;
    width: 80%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

    .guide-title {
      font-size: 28px;
      font-weight: 600;
      color: var(--primary-color);
      margin-bottom: 12px;
      text-align: center;
    }

    .guide-text {
      font-size: 24px;
      color: var(--text-primary-color);
      margin-bottom: 16px;
      line-height: 1.5;
      text-align: center;
    }

    .guide-arrow {
      position: absolute;
      top: -60px;
      left: 20px;
      font-size: 30px;
      color: var(--primary-color);
    }

    .guide-button {
      margin-top: 20px;
      display: flex;
      height: 50rpx;
      justify-content: center;
      align-items: center;
      background-color: var(--primary-color);
      color: white;
      border: none;
      border-radius: 20px;
      padding: 10px 20px;
      font-size: 16px;
      text-align: center;
      width: 100%;
    }
  }
}
